﻿using System;

using Matrix;
using Matrix.Xmpp;
using Matrix.Xmpp.Client;

namespace SBPweb.Communication.Client.Library.Xmpp.Commands
{

    partial class GetRosterCommand : Command<RosterIq, Iq>
    {

        #region Private fields

        private Jid jid;

        #endregion

        #region Constructor logic

        internal GetRosterCommand(Jid localJid)
        {
            jid = localJid;
        }

        #endregion

        #region Property accessors

        #endregion

        #region Methods

        public override RosterIq GetTypedRequest()
        {
            requestIq = new RosterIq();
            requestIq.From = jid;
            requestIq.Type = IqType.get;
            return requestIq;
        }

        public override void PutTypedResponse(Iq response)
        {
            base.responseIq = response;
            //TODO: Implement value parser
        }

        #endregion

    }


}